Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crypto store: clear db before integ tests #3644

Merged
merged 3 commits into from
Jul 3, 2024

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 3, 2024

It's currently possible for integ test results to leak from one test run to the next (for example, the indexeddb stores hang around in the browser), causing bad test results.

Extend the test setup routine to clear out the store before the test starts.

It's currently possible for integ test results to leak from one test run to the
next (for example, the indexeddb stores hang around in the browser), causing
bad test results.

Extend the test setup routine to clear out the store before the test starts.
@richvdh richvdh requested a review from a team as a code owner July 3, 2024 10:22
@richvdh richvdh requested review from poljar and removed request for a team July 3, 2024 10:22
richvdh added 2 commits July 3, 2024 11:40
Add a case that I forgot, and factor repeated code out
@richvdh richvdh force-pushed the rav/cryptostore_tests_clear_db branch from 57d0c68 to 11e5396 Compare July 3, 2024 10:40
Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.22%. Comparing base (5d716f9) to head (11e5396).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3644      +/-   ##
==========================================
+ Coverage   84.19%   84.22%   +0.02%     
==========================================
  Files         256      256              
  Lines       26600    26600              
==========================================
+ Hits        22397    22403       +6     
+ Misses       4203     4197       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@richvdh
Copy link
Member Author

richvdh commented Jul 3, 2024

@poljar thanks for the quick review! I had to make a couple of other changes, but I don't think they are material, so will go ahead and land this.

@richvdh richvdh merged commit d60ec55 into main Jul 3, 2024
39 checks passed
@richvdh richvdh deleted the rav/cryptostore_tests_clear_db branch July 3, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants